package com.airlines.system.dao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import com.airlines.system.domain.SysUserRole;

import java.util.List;

@Mapper
public interface SysUserRoleMapper {
    int deleteByPrimaryKey(String id);

    int insert(SysUserRole record);

    int insertSelective(SysUserRole record);

    SysUserRole selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysUserRole record);

    int updateByPrimaryKey(SysUserRole record);

    /**通过角色id获取信息*/
    @Select("select * from t_sys_user_role where role_id = #{roleId}")
    @ResultMap("com.airlines.system.dao.SysUserRoleMapper.BaseResultMap")
    List<SysUserRole> findByRoleId(@Param("roleId") String roleId);
}